<%-- 
    Document   : addmeasurement
    Created on : 3-dec-2009, 22:40:29
    Author     : Simon
--%>

<%@include file="../header.jsp" %>

<h1>Add a measurement here ...</h1>

<c:if test="${!empty flash}">
    <div class="flash error">${flash}</div>
</c:if>

<form method="post" action="${pageContext.request.contextPath}/patient/measurement/saveadd.jsp">
    Value:<input type="text" name="value" />
    Type:<select name="typeId">
        <c:forEach var="option" items="${types}">
            <option value="${option.id}">${option.name} in ${option.unit}</option>
        </c:forEach>
    </select>
    <%--Date:<input type="text" name="dateTaken" value="${date}"/>--%>
    <input type="submit" value="Add" name="submit" />
</form>

    <div class="back">
        <a href="javascript:history.back()">Back</a>
    </div>

<%@include file="../footer.jsp" %>